<html>
	<body>

	<p> Hello World! </p>

	<div id="main">
		<p> The DOM is very useful. </p>
		<p> This example demonstrates the <b>getElementsByTagName</b> method </p>
		<table>
			<tr>
			  <td><span class="style9">Breakfast Blend </span></td>
			  <td> 
				<div align="center" class="style9">
					$13.99
				</div>
			  </td>
			  <td> <div align="center">
				<input id="Breakfast_Blend" name="Breakfast_Blend" type="text" size="2" value="hi" />
			  </div>
			  </td>
			  <td>
				<input type="radio" id="Breakfast_Blend_type" name="Breakfast_Blend_type" value="Whole Bean" />
				<span class="style9">Whole Bean</span>
				<input type="radio" id="Breakfast_Blend_type" name="Breakfast_Blend_type" value="Ground" />
				<span class="style9">Ground</span>
			  </td>
			</tr>
			<tr>
			  <td> <span class="style9">Hawaiian Blend </span></td>
			  <td> <div align="center" class="style9">$20.99</div></td>
			  <td> <div align="center">
				<input id="Hawaiian_Blend" name="Hawaiian_Blend" type="text" size="2" />
			  </div>
			  </td>
			  <td>
				<input type="radio" id="Hawaiian_Blend_type" name="Hawaiian_Blend_type" value="Whole Bean" />
				<span class="style9">Whole Bean</span>
				<input type="radio" id="Hawaiian_Blend_type" name="Hawaiian_Blend_type" value="Ground" />
				<span class="style9">Ground</span>
			  </td>
			</tr>
			<tr>
				<td>
					<span class="style9">Italian Blend </span>
				</td>
				<td> <div align="center" class="style9">$10.99</div></td>
				<td> <div align="center">
				<input id="Italian_Blend" name="Italian_Blend" type="text" size="2" />
				</div>
				</td>
				<td>
				<input type="radio" id="Italian_Blend_type" name="Italian_Blend_type" value="Whole Bean" />
				<span class="style9">Whole Bean</span>
				<input type="radio" id="Italian_Blend_type" name="Italian_Blend_type" value="Ground" />
				<span class="style9">Ground</span>
				</td>
			</tr>
		</table>
	</div>

	<script type="text/javascript">
	x = document . getElementById ("main").getElementsByTagName("input");
	document .write("First paragraph inside the div: " + x[0].value);
	</script>
	</body>
	</html>